<form action="predeposit.manage.php" method="get" name="form_search" id="form_search" onsubmit="ajax_list();return false;">
<input type="hidden" name="action" id="action" value="predeposit_detail_list" />
<table  class="from_table">
	<tr>
		<th  align="left" style="width:150px"><tpl> $langPreSearchMemberName </tpl>
	  ：</th><td><input type="text" name="search_member_name" class="txtinput_short"  id="search_member_name" /></td>
  <th align="left" style="width:150px"><tpl> $langPreDetailCreateTime </tpl>：</th>
  <td colspan="2" ><input type="text" name="search_start_date" class="txtinput_short" id="search_start_date" size="15"  readonly="readonly" style="cursor:pointer" /><tpl> $langPreSearchTo </tpl><input type="text" name="search_end_date" class="txtinput_short" id="search_end_date" size="15" style="cursor:pointer"  readonly="readonly" /> </td>
  </tr>
	<tr>
	  <th width="150" align="left" style="width:150px"><tpl> $langPreDetailType </tpl>：</th><td><select name="search_detail_type" id="search_detail_type">
				<option value=""></option>
				<option value="0"><tpl> $langPreDetailTypeZero </tpl></option>
				<option value="1"><tpl> $langPreDetailTypeOne </tpl></option>
				<option value="2"><tpl> $langPreDetailTypeTwo </tpl></option>
				<option value="3"><tpl> $langPreDetailTypeThree </tpl></option>
				<option value="4"><tpl> $langPreDetailTypeFour </tpl></option>
				<option value="5"><tpl> $langPreDetailTypeFive </tpl></option>
				<option value="6"><tpl> $langPreDetailTypeSix </tpl></option>
			</select>	</td>
      <th align="left" style="width:150px"><tpl> $langPreState </tpl>
      ：</th><td width="100">
			<select name="search_detail_state" id="search_detail_state">
				<option value=""></option>
				<option value="0"><tpl> $langPreRecordStateZero </tpl></option>
				<option value="1"><tpl> $langPreRecordStateOne </tpl></option>
				<option value="2"><tpl> $langPreRecordStateTwo </tpl></option>
			</select>	</td>
      <td width="200" align="left"><span class="btn_left">
      <input type="submit" class="btn_submit" value="<tpl> $langPreSearch </tpl>" /></span></td>
	</tr>
	<tr>
		<td colspan="5"></td>
	</tr>
</table>
</form>
<table  class="from_table2_one">
 <thead>
	 <tr class="area_ajax_list_title">
	  <th class="pd-left" width="200"><tpl> $langPreDetailCreateTime </tpl></th>
	  <th width="200"><tpl> $langPreDetailUpdateTime </tpl></th>
	  <th width="200"><tpl> $langPreMemberChangeReason </tpl></th>
	  <th width="200"><tpl> $langPreMemberAvailable </tpl></th>
	  <th width="200"><tpl> $langPreMemberFreeze </tpl></th>
	  <th width="200"><tpl> $langPreState </tpl></th>
	  <th width="200"><tpl> $langPreAction </tpl></th>
  </tr>
  </thead>
  <tpl> if $detail_array[0].predeposit_id neq '' </tpl>
	  <tpl> section name=i loop=$detail_array </tpl>
	  <tr>
	    <td class="pd-left" width="200" align="left"><tpl> $detail_array[i].create_time </tpl></td>
		  <td width="200" align="left"><tpl> $detail_array[i].update_time </tpl></td>
		  <td width="200" align="left"><tpl> $detail_array[i].system_remark </tpl></td>
		  <td width="200" align="left"><tpl> if $detail_array[i].available_amount > 0 </tpl>+<tpl> /if </tpl><tpl> $detail_array[i].available_amount </tpl></td>
		  <td width="200" align="left"><tpl> if $detail_array[i].freeze_amount > 0 </tpl>+<tpl> /if </tpl><tpl> $detail_array[i].freeze_amount </tpl></td>
		  <tpl> assign var=one value=$detail_array[i].predeposit_state </tpl>
	    <td width="200" align="left"><tpl> $detail_state[$one] </tpl></td>
		  <td width="200" align="left"><a href="javascript:;" onclick="ShowDiv='result_content';getPageContent('predeposit.manage.php?action=predeposit_detail_view&id=<tpl> $detail_array[i].predeposit_id </tpl>');" title=" <tpl> $langPreView </tpl>" class="view_a_pic">
	   </a></td>
	  </tr>
	  <tpl> /section </tpl>
	
	<tpl> else  </tpl>
	  <tr>
		<td colspan="7"><tpl> $langSysCNoThing </tpl>！</td>
	  </tr>
	<tpl> /if </tpl>
</table>
 <tpl> if $detail_array[0].predeposit_id neq '' </tpl>
<div class="table-5-bottom"><div style="float:right; padding-right:20px">
		<tpl> $page_list </tpl>		
		</div></div>
		<tpl> /if </tpl>
<script>
$(document).ready(function() {	
});	
$(function(){
	$("#search_start_date").datepicker();
	$("#search_end_date").datepicker();
})
function ajax_list(){
	//取表单参数
	var queryString=$("#form_search").formSerialize();
	$.ajax({
		url: "predeposit.manage.php",
		data: queryString,
		type:'get',
		dataType:"html",
		beforeSubmit:  showLoading(showText),   // 提交之前执行的方法
		success: function(msg){
			$("#result_content").html(msg);
			hideLoading();
		}
	});
	return false;
}
</script>